<?php
$con = mysql_connect("localhost", "root", "");
if (!$con) {
    die('Could not connect: ' . mysql_error());
}

// Create table in my_db database
mysql_select_db("my_db", $con);
// $sql = "DELETE FROM `my_db`.`Person` WHERE `Person`.`PersonID` = '$_GET[Id]'";
// $sql = "UPDATE `my_db`.`Person` SET `Checked` = '1' WHERE `Person`.`PersonID` = '$_GET[Id]';";
// $sql = "UPDATE `my_db`.`SiteConfig` SET `title` = 'sun0900123' WHERE `SiteConfig`.`configID` = 1;"
$title = trim($_POST['title']);
$sql = "UPDATE `SiteConfig` SET `title`='$title' ,`description`='$_POST[description]', `keyword`='$_POST[keyword]',`url`='$_POST[url]' , `qq`='$_POST[qq]' ,`purl`='$_POST[purl]' ,`pid`='$_POST[pid]',`pkey`='$_POST[pkey]' WHERE `configID`= '1';";
mysql_query($sql, $con);
mysql_close($con);
header("location:Admin_AdminConfig.php");
exit;
?>